﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities.Enums;

namespace Entities
{
    public class BaseEntity
    {
        public int ID { get; set; }
        public EntityState ChgState { get; set; }

        public BaseEntity(int ID)
        {
            //if (ID < 0)
            //{
            //    throw new ArgumentException();
            //}
            this.ID = ID;
            this.ChgState = EntityState.Unchanged;
        }

        public BaseEntity()
        {
            this.ID = 0;
            this.ChgState = EntityState.New;
        }
    }
}
